package eteam.aps.common;

import eteam.aps.common.enumeration.SortEnum;
import io.swagger.annotations.ApiModelProperty;

public class QueryFilter {
    @ApiModelProperty("当前页(默认为1)")
    private int pageIndex = 1;
    @ApiModelProperty("每页条数(默认20)")
    private int pageSize = 20;
    @ApiModelProperty("排序字段")
    private String sortFields;
    @ApiModelProperty("排序策略")
    private SortEnum sortOrder;

    public int getPageIndex() {
        return pageIndex;
    }

    public void setPageIndex(int pageIndex) {
        this.pageIndex = pageIndex;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public String getSortFields() {
        return sortFields;
    }

    public void setSortFields(String sortFields) {
        this.sortFields = sortFields;
    }

    public SortEnum getSortOrder() {
        return sortOrder;
    }

    public void setSortOrder(SortEnum sortOrder) {
        this.sortOrder = sortOrder;
    }
}
